<include file="../header" xmlns="http://www.w3.org/1999/html"/>
<style>

</style>
<link rel="stylesheet" type="text/css" href="/Template/css/viewWorkorder.css">
<script type="text/javascript" src="/Template/js/vue.min.js"></script>
<script language="javascript" src="/Template/js/LodopFuncs.js"></script>
<script src='http://localhost:8000/CLodopfuncs.js?name=LODOP'></script>
<object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
    <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
<body class="J_scroll_fixed" id="container">
<script type="text/javascript">
    $(function() {

        var app = new Vue({
            el: '#container',
            data: {
                keywordList: []
            },
            methods: {
                remove: function(index) {
                    app.keywordList.splice(index,1);
                }
            }
        })



        $("button.btn_submit").click(function() {

            if(confirm("确定已打印成功了吗？")){
                $("form").submit();
            }else{
                return false;
            }
        })


    })

</script>
<script type="text/javascript"  src="__TMP__/assets/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript"  src="__TMP__/assets/js/ueditor/ueditor.all.min.js"></script>
<div class="wrap jj">
    <div class="common-form">
        <form id="form1"  class="form-horizontal J_ajaxForm" action="{:U('workorder/orderTaken')}">
            <div>
                <span class="mr20">
                    工单号：{$workorder.workorder_no}
                    <br/>
                    患者：{$patientInfo.patient_name}({$examBasic.side})
                </span>
            </div>
            <br/>
            <div>
                <button type="button" class="btn btn-info" onclick="javascript:prn1_preview();">工单打印</button>
                <if condition="$workorder['workorder_type'] neq '3'">
                    <button type="button" class="btn btn-danger" onclick="javascript:prn2_preview();">处方打印</button>
                </if>
            </div>
            <br/>
            <div>
                <if condition="$workorder['workorder_type'] eq '1'">
                    <button type="button" class="btn btn-success" onclick="javascript:order1_preview();">批记录1</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order2_preview();">批记录2</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order3_preview();">批记录3</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order4_preview();">批记录4</button>
                </if>
            </div>
            <br/>
            <!--div>
                <button type="button" class="btn btn-success" onclick="javascript:prn1_print();">工单打印</button>
                <if condition="$workorder['workorder_type'] neq '3'">
                    <button type="button" class="btn btn-success" onclick="javascript:prn2_print();">处方打印</button>
                </if>
            </div-->



        </form>
    </div>
    <div class="common-form">
        <form method="post" class="form-horizontal J_ajaxForm" action="{:U('workorder/orderTaken')}">
            <input type="hidden" value="{$workorder.workorder_id}" name="id" />
            <fieldset>
                <div class="form-actions" style="padding-left: 30px">
                    <!--if condition="$workorder['status'] eq 1">
                        <button type="button" class="btn btn-primary btn_submit">打印完成</button>
                    </if-->
                    <a class="btn" href="__URL__">返回</a>
                    <br/>
                    <a href="javascript:CheckIsInstall()">查看本机是否安装了控件或云打印</a><br/>
                </div>
            </fieldset>
        </form>
    </div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
<script language="javascript" type="text/javascript">
    var LODOP;
    function CheckIsInstall() {
        try{
            LODOP=getLodop();
            if (LODOP.VERSION) {
                if (LODOP.CVERSION)
                    alert("当前有C-Lodop云打印可用!\n C-Lodop版本:"+LODOP.CVERSION+"(内含Lodop"+LODOP.VERSION+")");
                else
                    alert("本机已成功安装了Lodop控件！\n 版本号:"+LODOP.VERSION);

            };
        }catch(err){
        }
    };

    function prn1_preview() {
        if('{$workorder.workorder_type}' == '1'){
            if('{$workorder.version}' == '1') {
                CreateOneFormPage1();
            }
            if('{$workorder.version}' == '2') {
                CreateOneFormPage111();
            }
        }
        if('{$workorder.workorder_type}' == '2'){
            CreateOneFormPage3();
        }
        if('{$workorder.workorder_type}' == '3'){
            CreateOneFormPage5();
        }
        LODOP.PREVIEW();
    };
    function prn1_print() {
        if('{$workorder.workorder_type}' == '1'){
            if('{$workorder.version}' == '1') {
                CreateOneFormPage1();
            }
            if('{$workorder.version}' == '2') {
                CreateOneFormPage111();
            }
        }
        if('{$workorder.workorder_type}' == '2'){
            CreateOneFormPage3();
        }
        if('{$workorder.workorder_type}' == '3'){
            CreateOneFormPage5();
        }
        LODOP.PRINT();
    };

    function prn2_preview() {
        if('{$workorder.workorder_type}' == '1'){
            CreateOneFormPage222();
        }
        if('{$workorder.workorder_type}' == '2'){
            CreateOneFormPage4();
        }
        LODOP.PREVIEW();
    };
    function prn2_print() {
        if('{$workorder.workorder_type}' == '1'){
            CreateOneFormPage2();
        }
        if('{$workorder.workorder_type}' == '2'){
            CreateOneFormPage4();
        }
        LODOP.PRINT();
    };

    function order1_preview() {
        CreateOneFormPageOrder1();
        LODOP.PREVIEW();
    };
    function order2_preview() {
        CreateOneFormPageOrder2();
        LODOP.PREVIEW();
    };
    function order3_preview() {
        CreateOneFormPageOrder3();
        LODOP.PREVIEW();
    };
    function order4_preview() {
        CreateOneFormPageOrder4();
        LODOP.PREVIEW();
    };

    function CreateOneFormPage1() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT"," " + '{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT","" + '{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT","" + '{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT","" + '{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT","" + '{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT"," " + '{$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",'{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
//        if('{$workorder.delivery_date}' == ''){
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT"," ");
//        }else{
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
//        }
        LODOP.SET_PRINT_STYLEA("mobility_"+ '{$examBasic.mobility}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("side_"+ '{$examBasic.side}',"CONTENT","√");

        var pronationArr = '{$examBasic.pronation}'.split(",");
        for(var i=0;i<4;i++){
            var name = "pronation_"+ pronationArr[i];
            if(pronationArr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }

        var supinationArr = '{$examBasic.supination}'.split(",");
        for(var i=0;i<4;i++){
            var name = "supination_"+ supinationArr[i];
            if(supinationArr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }

        LODOP.SET_PRINT_STYLEA("forefoot_"+ '{$examBasic.forefoot}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("heel_"+ '{$examBasic.heel}',"CONTENT","√");

        LODOP.SET_PRINT_STYLEA("height_heel","CONTENT","" + '{$examBasic.height_heel}');
        LODOP.SET_PRINT_STYLEA("shoe_size","CONTENT","" + '{$examBasic.shoe_size}');
        LODOP.SET_PRINT_STYLEA("shank_0","CONTENT"," " + '{$examMeasure.shank_0}');
        LODOP.SET_PRINT_STYLEA("shank_1","CONTENT"," " + '{$examMeasure.shank_1}');
        LODOP.SET_PRINT_STYLEA("shank_2","CONTENT"," " + '{$examMeasure.shank_2}');
        LODOP.SET_PRINT_STYLEA("shank_3","CONTENT"," " + '{$examMeasure.shank_3}');
        LODOP.SET_PRINT_STYLEA("shank_4","CONTENT"," " + '{$examMeasure.shank_4}');
        LODOP.SET_PRINT_STYLEA("shank_5","CONTENT"," " + '{$examMeasure.shank_5}');
        LODOP.SET_PRINT_STYLEA("shank_6","CONTENT"," " + '{$examMeasure.shank_6}');
        LODOP.SET_PRINT_STYLEA("shank_7","CONTENT"," " + '{$examMeasure.shank_7}');
        LODOP.SET_PRINT_STYLEA("shank_8","CONTENT"," " + '{$examMeasure.shank_8}');
        LODOP.SET_PRINT_STYLEA("shank_9","CONTENT"," " + '{$examMeasure.shank_9}');
        LODOP.SET_PRINT_STYLEA("shank_10","CONTENT"," " + '{$examMeasure.shank_10}');
        LODOP.SET_PRINT_STYLEA("shank_11","CONTENT"," " + '{$examMeasure.shank_11}');
        LODOP.SET_PRINT_STYLEA("shank_12","CONTENT"," " + '{$examMeasure.shank_12}');

        LODOP.SET_PRINT_STYLEA("r1_"+ '{$examMeasure.r1}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("r2_"+ '{$examMeasure.r2}',"CONTENT","√");

        switch('{$examMeasure.r1_angle}') {
            case "90":
                LODOP.SET_PRINT_STYLEA("r1_angle_0","CONTENT","√");
                break;
            case "-5":
                LODOP.SET_PRINT_STYLEA("r1_angle_1","CONTENT","√");
                break;
            case "-10":
                LODOP.SET_PRINT_STYLEA("r1_angle_2","CONTENT","√");
                break;
            case "-15":
                LODOP.SET_PRINT_STYLEA("r1_angle_3","CONTENT","√");
                break;
            default:
                LODOP.SET_PRINT_STYLEA("r1_angle_4","CONTENT"," " + '{$examMeasure.r1_angle}');
        }
        LODOP.SET_PRINT_STYLEA("r2_angle","CONTENT"," " + '{$examMeasure.r2_angle}');

        if('{$examMeasure.heel_head}' == 0){
            LODOP.SET_PRINT_STYLEA("heel_head_0","CONTENT","√");
        }else if('{$examMeasure.heel_head}' < 0)
        {
            LODOP.SET_PRINT_STYLEA("heel_head_1","CONTENT"," " + Math.abs('{$examMeasure.heel_head}'));
        }else{
            LODOP.SET_PRINT_STYLEA("heel_head_2","CONTENT"," " + '{$examMeasure.heel_head}');
        }

        if('{$examMeasure.forefoot_head}' == 0){
            LODOP.SET_PRINT_STYLEA("forefoot_head_0","CONTENT","√");
        }else if('{$examMeasure.forefoot_head}' < 0)
        {
            LODOP.SET_PRINT_STYLEA("forefoot_head_1","CONTENT"," " + Math.abs('{$examMeasure.forefoot_head}'));
        }else{
            LODOP.SET_PRINT_STYLEA("forefoot_head_2","CONTENT"," " + '{$examMeasure.forefoot_head}');
        }

        LODOP.SET_PRINT_STYLEA("sva","CONTENT"," " + '{$examMeasure.sva}');

        LODOP.SET_PRINT_STYLEA("gait_"+ '{$examBasic.gait}',"CONTENT","√");

        LODOP.SET_PRINT_STYLEA("shankcontrol_a_"+ '{$examAnalysis.shankcontrol_a}',"CONTENT","√");
        if('{$examAnalysis.shankcontrol_a_inside}' == "1"){
            LODOP.SET_PRINT_STYLEA("shankcontrol_a_inside","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("shankcontrol_b_"+ '{$examAnalysis.shankcontrol_b}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("shankcontrol_c_"+ '{$examAnalysis.shankcontrol_c}',"CONTENT","√");

        if(typeof muscle == "undefined"){
            var muscle = {
                0: 'N',
                1: 'AH',
                2: 'H'
            }
        }
        LODOP.SET_PRINT_STYLEA("muscle_0","CONTENT"," " + muscle['{$examBasic.muscle_0}']);
        LODOP.SET_PRINT_STYLEA("muscle_1","CONTENT"," " + muscle['{$examBasic.muscle_1}']);
        LODOP.SET_PRINT_STYLEA("muscle_2","CONTENT"," " + muscle['{$examBasic.muscle_2}']);
        LODOP.SET_PRINT_STYLEA("muscle_3","CONTENT"," " + muscle['{$examBasic.muscle_3}']);
        LODOP.SET_PRINT_STYLEA("muscle_4","CONTENT"," " + muscle['{$examBasic.muscle_4}']);
        LODOP.SET_PRINT_STYLEA("muscle_5","CONTENT"," " + muscle['{$examBasic.muscle_5}']);
        LODOP.SET_PRINT_STYLEA("muscle_6","CONTENT"," " + muscle['{$examBasic.muscle_6}']);
        LODOP.SET_PRINT_STYLEA("muscle_7","CONTENT"," " + muscle['{$examBasic.muscle_7}']);
        LODOP.SET_PRINT_STYLEA("muscle_8","CONTENT"," " + muscle['{$examBasic.muscle_8}']);
        LODOP.SET_PRINT_STYLEA("muscle_9","CONTENT"," " + muscle['{$examBasic.muscle_9}']);
        if(typeof joint == "undefined"){
            var joint = {
                0: 'N',
                1: 'L',
                2: 'HL',
                3: 'E'
            }
        }
        LODOP.SET_PRINT_STYLEA("hip_0","CONTENT"," " + joint['{$examBasic.hip_0}']);
        LODOP.SET_PRINT_STYLEA("hip_1","CONTENT"," " + joint['{$examBasic.hip_1}']);
        LODOP.SET_PRINT_STYLEA("hip_2","CONTENT"," " + joint['{$examBasic.hip_2}']);
        LODOP.SET_PRINT_STYLEA("hip_3","CONTENT"," " + joint['{$examBasic.hip_3}']);
        LODOP.SET_PRINT_STYLEA("hip_4","CONTENT"," " + joint['{$examBasic.hip_4}']);
        LODOP.SET_PRINT_STYLEA("hip_5","CONTENT"," " + joint['{$examBasic.hip_5}']);
        LODOP.SET_PRINT_STYLEA("knee_0","CONTENT"," " + joint['{$examBasic.knee_0}']);
        LODOP.SET_PRINT_STYLEA("knee_1","CONTENT"," " + joint['{$examBasic.knee_1}']);
        LODOP.SET_PRINT_STYLEA("ankle_0","CONTENT"," " + joint['{$examBasic.ankle_0}']);
        LODOP.SET_PRINT_STYLEA("ankle_1","CONTENT"," " + joint['{$examBasic.ankle_1}']);
        LODOP.SET_PRINT_STYLEA("ankle_2","CONTENT"," " + joint['{$examBasic.ankle_2}']);
        LODOP.SET_PRINT_STYLEA("ankle_3","CONTENT"," " + joint['{$examBasic.ankle_3}']);
        LODOP.SET_PRINT_STYLEA("remark","CONTENT","                " + '{$examBasic.remark}');
        LODOP.SET_PRINT_STYLEA("dysfunction","CONTENT","              " + '{$examBasic.dysfunction}');
        if(typeof weak == "undefined"){
            var weak = {
                1: '√',
                '': '  '
            }
        }
        LODOP.SET_PRINT_STYLEA("hipweak_0","CONTENT", weak['{$examBasic.hipweak_0}']);
        LODOP.SET_PRINT_STYLEA("hipweak_1","CONTENT", weak['{$examBasic.hipweak_1}']);
        LODOP.SET_PRINT_STYLEA("hipweak_2","CONTENT", weak['{$examBasic.hipweak_2}']);
        LODOP.SET_PRINT_STYLEA("hipweak_3","CONTENT", weak['{$examBasic.hipweak_3}']);
        LODOP.SET_PRINT_STYLEA("hipweak_4","CONTENT", weak['{$examBasic.hipweak_4}']);
        LODOP.SET_PRINT_STYLEA("hipweak_5","CONTENT", weak['{$examBasic.hipweak_5}']);
        LODOP.SET_PRINT_STYLEA("kneeweak_0","CONTENT", weak['{$examBasic.kneeweak_0}']);
        LODOP.SET_PRINT_STYLEA("kneeweak_1","CONTENT", weak['{$examBasic.kneeweak_1}']);
        LODOP.SET_PRINT_STYLEA("ankleweak_0","CONTENT", weak['{$examBasic.ankleweak_0}']);
        LODOP.SET_PRINT_STYLEA("ankleweak_1","CONTENT", weak['{$examBasic.ankleweak_1}']);
        LODOP.SET_PRINT_STYLEA("ankleweak_2","CONTENT", weak['{$examBasic.ankleweak_2}']);
        LODOP.SET_PRINT_STYLEA("ankleweak_3","CONTENT", weak['{$examBasic.ankleweak_3}']);
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function CreateOneFormPage111() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT",'{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT",'{$patientInfo.height}cm');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT",'{$patientInfo.weight}kg');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT",'{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT",'{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT",' {$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",' {$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
        var doc = '';
        if('{$patientInfo.doctor}' != ''){
            doc = '医生:{$patientInfo.doctor},';
        }
        if('{$patientInfo.hospital}' != ''){
            doc += '(医院:{$patientInfo.hospital})';
        }
        LODOP.SET_PRINT_STYLEA("doctor","CONTENT",doc);

//        var d = '{$workorder.create_time}';
//        alert(d.substring( 0, d.indexOf(' ')));
//        if('{$workorder.delivery_date}' == ''){
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT"," ");
//        }else{
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
//        }
        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("mobility","CONTENT",'{$examBasic.mobility}');
        LODOP.SET_PRINT_STYLEA("shankcontrol","CONTENT",'{$examBasic.shankcontrol}');
        LODOP.SET_PRINT_STYLEA("gait","CONTENT",'{$examBasic.gait}');
        if('{$examBasic.burden}' != ""){
            LODOP.SET_PRINT_STYLEA("castburden","CONTENT",'取型时{$examBasic.burden}');
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",'{$examBasic.footarch}');
        var toe = '{$examBasic.toe}';
        if('{$examBasic.notetoe}' != ""){
            toe += '，备注：{$examBasic.notetoe}';
        }
        LODOP.SET_PRINT_STYLEA("toe","CONTENT",toe);
        LODOP.SET_PRINT_STYLEA("height_heel","CONTENT",'{$examBasic.height_heel}');
        LODOP.SET_PRINT_STYLEA("shoe_size","CONTENT",'{$examBasic.shoe_type}({$examBasic.shoe_size}码)');
        var forefoot = '{$examBasic.forefoot}';
        if('{$examBasic.complforefoot}' != ""){
            forefoot += '，{$examBasic.complforefoot}';
        }
        if('{$examBasic.noteforefoot}' != ""){
            forefoot += '，备注：{$examBasic.noteforefoot}';
        }
        LODOP.SET_PRINT_STYLEA("forefoot","CONTENT",forefoot);
        var footarch = '{$examBasic.footarch}';
        if('{$examBasic.notefootarch}' != ""){
            footarch += '，备注：{$examBasic.notefootarch}';
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",footarch);
        var complheel = '{$examBasic.complheel}';
        if('{$examBasic.heela}' != ""){
            complheel += ',负重位：{$examBasic.heela}({$examBasic.heelaangle})°';
        }
        if('{$examBasic.heelb}' != ""){
            complheel += ',非负重位：{$examBasic.heelb}({$examBasic.heelbangle})°';
        }
        if('{$examBasic.noteheel}' != ""){
            complheel += '，备注：{$examBasic.noteheel}';
        }
        LODOP.SET_PRINT_STYLEA("complheel","CONTENT",complheel);
        LODOP.SET_PRINT_STYLEA("discomfort","CONTENT",'                                   {$examBasic.discomfort}');
        LODOP.SET_PRINT_STYLEA("anklesymmetry","CONTENT",'             {$examBasic.anklesymmetry}');
        LODOP.SET_PRINT_STYLEA("dysfunction","CONTENT",'                       {$examBasic.dysfunction}');
        if('{$examBasic.takephoto}' == "1"){
            LODOP.SET_PRINT_STYLEA("takephoto","CONTENT","√");
        }
        if('{$examBasic.takevideo}' == "1"){
            LODOP.SET_PRINT_STYLEA("takevideo","CONTENT","√");
        }

        LODOP.SET_PRINT_STYLEA("ms01","CONTENT",' {$examBasicCP.ms01}');
        LODOP.SET_PRINT_STYLEA("ms02","CONTENT",' {$examBasicCP.ms02}');
        LODOP.SET_PRINT_STYLEA("ms03","CONTENT",' {$examBasicCP.ms03}');
        LODOP.SET_PRINT_STYLEA("ms04","CONTENT",' {$examBasicCP.ms04}');
        LODOP.SET_PRINT_STYLEA("ms05","CONTENT",' {$examBasicCP.ms05}');
        LODOP.SET_PRINT_STYLEA("ms06","CONTENT",' {$examBasicCP.ms06}');
        LODOP.SET_PRINT_STYLEA("ms07","CONTENT",' {$examBasicCP.ms07}');
        LODOP.SET_PRINT_STYLEA("ms08","CONTENT",' {$examBasicCP.ms08}');
        LODOP.SET_PRINT_STYLEA("ms09","CONTENT",' {$examBasicCP.ms09}');
        LODOP.SET_PRINT_STYLEA("ms10","CONTENT",' {$examBasicCP.ms10}');
        LODOP.SET_PRINT_STYLEA("mt01","CONTENT",' {$examBasicCP.mt01}');
        LODOP.SET_PRINT_STYLEA("mt02","CONTENT",' {$examBasicCP.mt02}');
        LODOP.SET_PRINT_STYLEA("mt03","CONTENT",' {$examBasicCP.mt03}');
        LODOP.SET_PRINT_STYLEA("mt04","CONTENT",' {$examBasicCP.mt04}');
        LODOP.SET_PRINT_STYLEA("mt05","CONTENT",' {$examBasicCP.mt05}');
        LODOP.SET_PRINT_STYLEA("mt06","CONTENT",' {$examBasicCP.mt06}');
        LODOP.SET_PRINT_STYLEA("mt07","CONTENT",' {$examBasicCP.mt07}');
        LODOP.SET_PRINT_STYLEA("mt08","CONTENT",' {$examBasicCP.mt08}');
        LODOP.SET_PRINT_STYLEA("mt09","CONTENT",' {$examBasicCP.mt09}');
        LODOP.SET_PRINT_STYLEA("mt10","CONTENT",' {$examBasicCP.mt10}');
        LODOP.SET_PRINT_STYLEA("mt11","CONTENT",' {$examBasicCP.mt11}');
        LODOP.SET_PRINT_STYLEA("mt12","CONTENT",' {$examBasicCP.mt12}');
        LODOP.SET_PRINT_STYLEA("mt13","CONTENT",' {$examBasicCP.mt13}');
        LODOP.SET_PRINT_STYLEA("mt14","CONTENT",' {$examBasicCP.mt14}');
        LODOP.SET_PRINT_STYLEA("jr01","CONTENT",'{$examBasicCP.jr01}');
        LODOP.SET_PRINT_STYLEA("jr02","CONTENT",'{$examBasicCP.jr02}');
        LODOP.SET_PRINT_STYLEA("jr03","CONTENT",'{$examBasicCP.jr03}');
        LODOP.SET_PRINT_STYLEA("jr04","CONTENT",'{$examBasicCP.jr04}');
        LODOP.SET_PRINT_STYLEA("jr05","CONTENT",'{$examBasicCP.jr05}');
        LODOP.SET_PRINT_STYLEA("jr06","CONTENT",'{$examBasicCP.jr06}');
        LODOP.SET_PRINT_STYLEA("jr07","CONTENT",'{$examBasicCP.jr07}');
        LODOP.SET_PRINT_STYLEA("jr08","CONTENT",'{$examBasicCP.jr08}');
        LODOP.SET_PRINT_STYLEA("jr09","CONTENT",'{$examBasicCP.jr09}');
        LODOP.SET_PRINT_STYLEA("jr10","CONTENT",'{$examBasicCP.jr10}');
        LODOP.SET_PRINT_STYLEA("jr11","CONTENT",'{$examBasicCP.jr11}');
        LODOP.SET_PRINT_STYLEA("jr12","CONTENT",'{$examBasicCP.jr12}');
        LODOP.SET_PRINT_STYLEA("sk01","CONTENT",' {$examBasicCP.sk01}');
        LODOP.SET_PRINT_STYLEA("sk02","CONTENT",' {$examBasicCP.sk02}');
        LODOP.SET_PRINT_STYLEA("fp01","CONTENT",' {$examBasicCP.fp01}');
        LODOP.SET_PRINT_STYLEA("b01","CONTENT",'      {$examBasicCP.b01}');
        LODOP.SET_PRINT_STYLEA("b02","CONTENT",'      {$examBasicCP.b02}');
        LODOP.SET_PRINT_STYLEA("b03","CONTENT",'      {$examBasicCP.b03}');
        LODOP.SET_PRINT_STYLEA("b04","CONTENT",'      {$examBasicCP.b04}');

        LODOP.SET_PRINT_STYLEA("burden","CONTENT",'{$examMeasure.burden}');
        LODOP.SET_PRINT_STYLEA("shank_0","CONTENT",'{$examMeasure.shank_0}');
        LODOP.SET_PRINT_STYLEA("shank_1","CONTENT",'{$examMeasure.shank_1}');
        LODOP.SET_PRINT_STYLEA("shank_2","CONTENT",'{$examMeasure.shank_2}');
        LODOP.SET_PRINT_STYLEA("shank_3","CONTENT",'{$examMeasure.shank_3}');
        LODOP.SET_PRINT_STYLEA("shank_4","CONTENT",'{$examMeasure.shank_4}');
        LODOP.SET_PRINT_STYLEA("shank_5","CONTENT",'{$examMeasure.shank_5}');
        LODOP.SET_PRINT_STYLEA("shank_6","CONTENT",'{$examMeasure.shank_6}');
        LODOP.SET_PRINT_STYLEA("shank_7","CONTENT",'{$examMeasure.shank_7}');
        LODOP.SET_PRINT_STYLEA("shank_8","CONTENT",'{$examMeasure.shank_8}');
        LODOP.SET_PRINT_STYLEA("shank_9","CONTENT",'{$examMeasure.shank_9}');
        LODOP.SET_PRINT_STYLEA("shank_10","CONTENT",'{$examMeasure.shank_10}');
        LODOP.SET_PRINT_STYLEA("shank_11","CONTENT",'{$examMeasure.shank_11}');
        LODOP.SET_PRINT_STYLEA("shank_12","CONTENT",'{$examMeasure.shank_12}');
        LODOP.SET_PRINT_STYLEA("shank_13","CONTENT",'{$examMeasure.shank_13}');
        LODOP.SET_PRINT_STYLEA("shank_14","CONTENT",'{$examMeasure.shank_14}');
        LODOP.SET_PRINT_STYLEA("shank_15","CONTENT",'{$examMeasure.shank_15}');
//        LODOP.SET_PRINT_STYLEA("shank_16","CONTENT",'{$examMeasure.shank_16}');
//        LODOP.SET_PRINT_STYLEA("shank_17","CONTENT",' {$examMeasure.shank_17}°');
//        LODOP.SET_PRINT_STYLEA("shank_18","CONTENT",' {$examMeasure.shank_18}°');
//        LODOP.SET_PRINT_STYLEA("shank_19","CONTENT",' {$examMeasure.shank_19}°');
//        LODOP.SET_PRINT_STYLEA("shank_20","CONTENT",' {$examMeasure.shank_20}°');
//        if('{$examMeasure.head}' == "1"){
//            LODOP.SET_PRINT_STYLEA("head","CONTENT","√");
//        }
        LODOP.SET_PRINT_STYLEA("deposit","CONTENT"," " + '{$workorder.deposit}');
        LODOP.SET_PRINT_STYLEA("type_name","CONTENT"," " + '{$workorder.type_name}');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$workorder.price}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.employee_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$workorder.adapt}',"CONTENT","√");
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function CreateOneFormPage2() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("ankle_type_"+ '{$examAnalysis.ankle_type}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("ankle_type_other","CONTENT"," " + '{$examAnalysis.ankle_type_other}');
        LODOP.SET_PRINT_STYLEA("ankle_size_"+ '{$examAnalysis.ankle_size}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("ankle_activity_"+ '{$examAnalysis.ankle_activity}',"CONTENT","√");
        if('{$examAnalysis.ankle_activity}' == "0"){
            LODOP.SET_PRINT_STYLEA("ankle_activity_option1_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
        }
        if('{$examAnalysis.ankle_activity}' == "1"){
            LODOP.SET_PRINT_STYLEA("ankle_activity_option2_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
            if('{$examAnalysis.ankle_activity_option}' == "2"){
                LODOP.SET_PRINT_STYLEA("ankle_activity_other1","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
            }
            if('{$examAnalysis.ankle_activity_option}' == "3"){
                LODOP.SET_PRINT_STYLEA("ankle_activity_other2","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
            }
        }
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$workorder.price}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.employee_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function CreateOneFormPage222() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        //按类名赋值
        if('{$rx.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'({$workorder.side})');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$rx.price}');
        LODOP.SET_PRINT_STYLEA("other_type","CONTENT"," " + '{$rx.other_type}[{$rx.other_price}]');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.employee_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$rx.delivery_date}');
        LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.employee_name}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$workorder.adapt}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_type_"+ '{$examAnalysis.ankle_type}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_type_other","CONTENT"," " + '{$examAnalysis.ankle_type_other}');
//        LODOP.SET_PRINT_STYLEA("ankle_size_"+ '{$examAnalysis.ankle_size}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_activity_"+ '{$examAnalysis.ankle_activity}',"CONTENT","√");
//        if('{$examAnalysis.ankle_activity}' == "0"){
//            LODOP.SET_PRINT_STYLEA("ankle_activity_option1_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
//        }
//        if('{$examAnalysis.ankle_activity}' == "1"){
//            LODOP.SET_PRINT_STYLEA("ankle_activity_option2_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
//            if('{$examAnalysis.ankle_activity_option}' == "2"){
//                LODOP.SET_PRINT_STYLEA("ankle_activity_other1","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
//            }
//            if('{$examAnalysis.ankle_activity_option}' == "3"){
//                LODOP.SET_PRINT_STYLEA("ankle_activity_other2","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
//            }
//        }

        if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("combo", "CONTENT", "√");
        }
        LODOP.SET_PRINT_STYLEA("afotype_in","CONTENT", '内靴类型：{$afotype_in}');


        LODOP.SET_PRINT_STYLEA("afotype_out","CONTENT", '外靴类型：{$afotype_out}');

        var dorsal_supArr = "";
        if('{$rx.activity_limit}' != ""){
            dorsal_supArr += '活动限制:{$rx.activity_limit}。';
        }
        if('{$rx.limit_level}' != ""){
            if('{$rx.limit_level_angle}' != ""){
                dorsal_supArr += '限制程度:{$rx.limit_level}--{$rx.limit_level_angle}度。';
            }else{
                dorsal_supArr += '限制程度:{$rx.limit_level}。';
            }
        }
        if('{$rx.limit_level_other}' != ""){
            dorsal_supArr += '其它:{$rx.limit_level_other}';
        }
        LODOP.SET_PRINT_STYLEA("dorsal_sup","CONTENT", dorsal_supArr);

        if('{$rx.flex_other}' != ""){
            LODOP.SET_PRINT_STYLEA("flex","CONTENT", '{$flex}。其他:{$rx.flex_other}');
        }else{
            LODOP.SET_PRINT_STYLEA("flex","CONTENT", '{$flex}');
        }


        LODOP.SET_PRINT_STYLEA("afotype_out_note","CONTENT", '{$rx.afotype_out_note}');
    //    if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("afotype_in_note", "CONTENT", '{$rx.afotype_in_note}');
   //     }
        LODOP.SET_PRINT_STYLEA("afotype_other_note","CONTENT", '{$rx.afotype_other_note}');
        LODOP.SET_PRINT_STYLEA("ahtype","CONTENT", '{$rx.ahtype}');
        LODOP.SET_PRINT_STYLEA("ahsize","CONTENT", '{$rx.ahsize}');
        LODOP.SET_PRINT_STYLEA("activity_limit","CONTENT", '{$rx.activity_limit}');
        LODOP.SET_PRINT_STYLEA("limit_level","CONTENT", '{$rx.limit_level}');
        if('{$rx.limit_level_angle}' != "") {
            LODOP.SET_PRINT_STYLEA("limit_level_angle", "CONTENT", '(角度:{$rx.limit_level_angle}°)');
        }
        if('{$rx.limit_level_other}' != "") {
            LODOP.SET_PRINT_STYLEA("limit_level_other", "CONTENT", '其它铰链及限制说明:{$rx.limit_level_other}');
        }
        LODOP.SET_PRINT_STYLEA("ahtype","CONTENT", '{$rx.ahtype}');
        LODOP.SET_PRINT_STYLEA("sag","CONTENT", 'AA：{$rx.sag_aa}°，SVA：{$rx.sag_sva}°');
        var heelArr = "";
        if('{$rx.heel}' != ""){
            heelArr += '跟骨：{$rx.heel}';
        }
        if('{$rx.heel_angle}' != ""){
            heelArr += '--{$rx.heel_angle}°。';
        }else{
            heelArr += '。';
        }
        if('{$rx.forefoot}' != ""){
            heelArr += '前足：{$rx.forefoot}';
        }
        LODOP.SET_PRINT_STYLEA("heel","CONTENT", heelArr);

//        if('{$rx.shankab}' == ""){
//            LODOP.SET_PRINT_STYLEA("shank","CONTENT", 'A小腿前倾不足：{$rx.shanka}，{$rx.in_shanka}');
//        }else{
//            LODOP.SET_PRINT_STYLEA("shank","CONTENT", 'B小腿过度前倾：{$rx.shankb}');
//        }

        LODOP.SET_PRINT_STYLEA("outproduct","CONTENT", '{$rx.outproduct}');
        var outArr = "";
        if('{$rx.out_pp}' != ""){
            outArr += "PP：" + '{$rx.out_pp}，';
        }
        if('{$rx.out_carbpp}' != ""){
            outArr += "碳纤PP：" + '{$rx.out_carbpp}，';
        }
        if('{$rx.out_copp}' != ""){
            outArr += "共聚PP：" + '{$rx.out_copp}，';
        }
        if('{$rx.out_pe}' != ""){
            outArr += "PE：" + '{$rx.out_pe}，';
        }
        if('{$rx.out_enhpe}' != ""){
            outArr += "改性PE：" + '{$rx.out_enhpe}，';
        }
        if('{$rx.out_dy}' != ""){
            outArr += "Dynamolene：" + '{$rx.out_dy}，';
        }
        LODOP.SET_PRINT_STYLEA("out_m","CONTENT", outArr);

    //    if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("inproduct", "CONTENT", '{$rx.inproduct}');
            var inArr = "";
            if ('{$rx.in_dy}' != "") {
                inArr += "Dynamolene：" + '{$rx.in_dy}，';
            }
            if ('{$rx.in_enhpe}' != "") {
                inArr += "改性PE：" + '{$rx.in_enhpe}，';
            }
            if ('{$rx.in_copp}' != "") {
                inArr += "共聚PP：" + '{$rx.in_copp}，';
            }
            if ('{$rx.in_pp}' != "") {
                inArr += "PP：" + '{$rx.in_pp}，';
            }
            if ('{$rx.in_eva}' != "") {
                inArr += "EVA：" + '{$rx.in_eva}，';
            }
            LODOP.SET_PRINT_STYLEA("in_m", "CONTENT", inArr);

            LODOP.SET_PRINT_STYLEA("innerproduct", "CONTENT", '{$rx.innerproduct}');
            var innerArr = "";
            if ('{$rx.inner_al}' != "") {
                innerArr += "Aliplast：" + '{$rx.inner_al}，';
            }
            if ('{$rx.inner_eva}' != "") {
                innerArr += "EVA：" + '{$rx.inner_eva}，';
            }
            if ('{$rx.inner_other}' != "") {
                innerArr += "其他内衬：" + '{$rx.inner_other}';
            }
            LODOP.SET_PRINT_STYLEA("inner_m", "CONTENT", innerArr);
     //   }

        var mould_outArr = "";
        if('{$mould_out}' != ""){
            mould_outArr += '{$mould_out},';
        }
        if('{$rx.mould_out_a}' != ""){
            mould_outArr += '跟骨内侧楔形:{$rx.mould_out_a}°,';
        }
        if('{$rx.mould_out_b}' != ""){
            mould_outArr += '跟骨外侧楔形:{$rx.mould_out_b}°,';
        }
        if('{$rx.mould_out_c}' != ""){
            mould_outArr += '中足内侧楔形:{$rx.mould_out_c}°,';
        }
        if('{$rx.mould_out_d}' != ""){
            mould_outArr += '中足外侧楔形:{$rx.mould_out_d}°,';
        }
        if('{$rx.mould_out_e}' != ""){
            mould_outArr += '前脚掌加长:{$rx.mould_out_e},';
        }
        if('{$rx.mould_out_f}' != ""){
            mould_outArr += '跖趾关节前翘:{$rx.mould_out_f}°,';
        }
        if('{$rx.mould_out_g}' != ""){
            mould_outArr += '趾间关节前翘:{$rx.mould_out_g}°,';
        }
        if('{$rx.mould_out_h}' != ""){
            mould_outArr += '第{$rx.mould_out_h}跖趾关节下免荷,';
        }
        if('{$rx.mould_out_i}' != ""){
            mould_outArr += '其它：{$rx.mould_out_i}';
        }
        LODOP.SET_PRINT_STYLEA("mould_out","CONTENT", mould_outArr);

//        if('{$rx.combo}' == "是") {
//            var mould_inArr = "";
//            if ('{$mould_in}' != "") {
//                mould_inArr += '{$mould_in},';
//            }
//            if ('{$rx.mould_in_a}' != "") {
//                mould_inArr += '前脚掌加长:{$rx.mould_in_a},';
//            }
//            if ('{$rx.mould_in_b}' != "") {
//                mould_inArr += '跖趾关节前翘:{$rx.mould_in_b}°,';
//            }
//            if ('{$rx.mould_in_c}' != "") {
//                mould_inArr += '趾间关节前翘:{$rx.mould_in_c}°,';
//            }
//            if ('{$rx.mould_in_d}' != "") {
//                mould_inArr += '第{$rx.mould_in_d}跖趾关节下免荷,';
//            }
//            if ('{$rx.mould_in_e}' != "") {
//                mould_inArr += '其它:{$rx.mould_in_e}';
//            }
//            LODOP.SET_PRINT_STYLEA("mould_in", "CONTENT", mould_inArr);
//        }

        var wedge_outArr = "";
        if('{$rx.wedge_out_pos}' != ""){
            wedge_outArr += '位于：{$rx.wedge_out_pos},';
        }
        if('{$rx.wedge_out_b}' != ""){
            wedge_outArr += '前足：{$rx.wedge_out_b}--{$rx.wedge_out_a}°,';
        }
        if('{$rx.wedge_out_d}' != ""){
            wedge_outArr += '中足：{$rx.wedge_out_d}--{$rx.wedge_out_c}° ';
        }
        if('{$rx.wedge_out_f}' != ""){
            wedge_outArr += '后足：{$rx.wedge_out_f}--{$rx.wedge_out_e}°,';
        }
        if('{$rx.wedge_out_g}' != ""){
            wedge_outArr += '其它：{$rx.wedge_out_g}';
        }
        LODOP.SET_PRINT_STYLEA("wedge_out","CONTENT", wedge_outArr);

     //   if('{$rx.combo}' == "是") {
            var wedge_inArr = "";
            if('{$rx.wedge_in_pos}' != ""){
                wedge_inArr += '位于：{$rx.wedge_in_pos},';
            }
            if('{$rx.wedge_in_b}' != ""){
                wedge_inArr += '前足：{$rx.wedge_in_b}--{$rx.wedge_in_a}°,';
            }
            if('{$rx.wedge_in_d}' != ""){
                wedge_inArr += '中足：{$rx.wedge_in_d}--{$rx.wedge_in_c}° ';
            }
            if('{$rx.wedge_in_f}' != ""){
                wedge_inArr += '后足：{$rx.wedge_in_f}--{$rx.wedge_in_e}°,';
            }
            if('{$rx.wedge_in_g}' != ""){
                wedge_inArr += '其它：{$rx.wedge_in_g}';
            }
            LODOP.SET_PRINT_STYLEA("wedge_in","CONTENT", wedge_inArr);
     //   }

        var soleArr = "";
        if('{$rx.sole_a}' != ""){
            soleArr += '足跟：{$rx.sole_a},  ';
        }
        if('{$rx.sole_b}' != ""){
            soleArr += '前足：{$rx.sole_b},  ';
        }
        if('{$rx.sole_b_angle}' != ""){
            soleArr += '描述：{$rx.sole_b_angle},  ';
        }
        if('{$rx.sole_c}' != ""){
            soleArr += '有效跟高：{$rx.sole_c},  ';
        }
        if('{$rx.sole_d}' != ""){
            soleArr += '其它要求：{$rx.sole_d}';
        }
        LODOP.SET_PRINT_STYLEA("sole","CONTENT", soleArr);

        var hasp_out_aArr = "";
        if('{$rx.hasp_out_len_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_len_a}，';
        }
        if('{$rx.hasp_out_type_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_type_a}，';
        }
        if('{$rx.hasp_out_tight_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_tight_a}，';
        }
        if('{$rx.hasp_out_start_a}' != ""){
            hasp_out_aArr += '起点:{$rx.hasp_out_start_a}、{$rx.hasp_out_side_a},';
        }
        if('{$rx.hasp_out_start_a1}' != ""){
            hasp_out_aArr += '止点:{$rx.hasp_out_start_a1}、{$rx.hasp_out_side_a1},';
        }
        if('{$rx.hasp_out_other_a}' != ""){
            hasp_out_aArr += '其它：{$rx.hasp_out_other_a}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_a","CONTENT", hasp_out_aArr);

        var hasp_out_bArr = "";
        if('{$rx.hasp_out_len_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_len_b}，';
        }
        if('{$rx.hasp_out_type_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_type_b}，';
        }
        if('{$rx.hasp_out_tight_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_tight_b}，';
        }
        if('{$rx.hasp_out_start_b}' != ""){
            hasp_out_bArr += '起点:{$rx.hasp_out_start_b}、{$rx.hasp_out_side_b},';
        }
        if('{$rx.hasp_out_start_b1}' != ""){
            hasp_out_bArr += '止点:{$rx.hasp_out_start_b1}、{$rx.hasp_out_side_b1},';
        }
        if('{$rx.hasp_out_other_b}' != ""){
            hasp_out_bArr += '其它：{$rx.hasp_out_other_b}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_b","CONTENT", hasp_out_bArr);

        var hasp_out_cArr = "";
        if('{$rx.hasp_out_len_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_len_c}，';
        }
        if('{$rx.hasp_out_type_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_type_c}，';
        }
        if('{$rx.hasp_out_tight_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_tight_c}，';
        }
        if('{$rx.hasp_out_start_c}' != ""){
            hasp_out_cArr += '起点:{$rx.hasp_out_start_c}、{$rx.hasp_out_side_c},';
        }
        if('{$rx.hasp_out_start_c1}' != ""){
            hasp_out_cArr += '止点:{$rx.hasp_out_start_c1}、{$rx.hasp_out_side_c1},';
        }
        if('{$rx.hasp_out_other_c}' != ""){
            hasp_out_cArr += '其它：{$rx.hasp_out_other_c}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_c","CONTENT", hasp_out_cArr);

        var hasp_out_dArr = "";
        if('{$rx.hasp_out_len_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_len_d}，';
        }
        if('{$rx.hasp_out_type_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_type_d}，';
        }
        if('{$rx.hasp_out_tight_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_tight_d}，';
        }
        if('{$rx.hasp_out_start_d}' != ""){
            hasp_out_dArr += '起点:{$rx.hasp_out_start_d}、{$rx.hasp_out_side_d},';
        }
        if('{$rx.hasp_out_start_d1}' != ""){
            hasp_out_dArr += '止点:{$rx.hasp_out_start_d1}、{$rx.hasp_out_side_d1},';
        }
        if('{$rx.hasp_out_other_d}' != ""){
            hasp_out_dArr += '其它：{$rx.hasp_out_other_d}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_d","CONTENT", hasp_out_dArr);

      //  if('{$rx.combo}' == "是") {
            var hasp_in_aArr = "";
            if('{$rx.hasp_in_len_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_len_a}，';
            }
            if('{$rx.hasp_in_type_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_type_a}，';
            }
            if('{$rx.hasp_in_tight_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_tight_a}，';
            }
            if('{$rx.hasp_in_start_a}' != ""){
                hasp_in_aArr += '起点:{$rx.hasp_in_start_a}、{$rx.hasp_in_side_a},';
            }
            if('{$rx.hasp_in_start_a1}' != ""){
                hasp_in_aArr += '止点:{$rx.hasp_in_start_a1}、{$rx.hasp_in_side_a1},';
            }
            if('{$rx.hasp_in_other_a}' != ""){
                hasp_in_aArr += '其它：{$rx.hasp_in_other_a}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_a","CONTENT", hasp_in_aArr);

            var hasp_in_bArr = "";
            if('{$rx.hasp_in_len_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_len_b}，';
            }
            if('{$rx.hasp_in_type_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_type_b}，';
            }
            if('{$rx.hasp_in_tight_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_tight_b}，';
            }
            if('{$rx.hasp_in_start_b}' != ""){
                hasp_in_bArr += '起点:{$rx.hasp_in_start_b}、{$rx.hasp_in_side_b},';
            }
            if('{$rx.hasp_in_start_b1}' != ""){
                hasp_in_bArr += '止点:{$rx.hasp_in_start_b1}、{$rx.hasp_in_side_b1},';
            }
            if('{$rx.hasp_in_other_b}' != ""){
                hasp_in_bArr += '其它：{$rx.hasp_in_other_b}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_b","CONTENT", hasp_in_bArr);

            var hasp_in_cArr = "";
            if('{$rx.hasp_in_len_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_len_c}，';
            }
            if('{$rx.hasp_in_type_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_type_c}，';
            }
            if('{$rx.hasp_in_tight_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_tight_c}，';
            }
            if('{$rx.hasp_in_start_c}' != ""){
                hasp_in_cArr += '起点:{$rx.hasp_in_start_c}、{$rx.hasp_in_side_c},';
            }
            if('{$rx.hasp_in_start_c1}' != ""){
                hasp_in_cArr += '止点:{$rx.hasp_in_start_c1}、{$rx.hasp_in_side_c1},';
            }
            if('{$rx.hasp_in_other_c}' != ""){
                hasp_in_cArr += '其它：{$rx.hasp_in_other_c}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_c","CONTENT", hasp_in_cArr);
  //      }

        var cutline_outArr = "";
        if('{$cutline_out}' != ""){
            cutline_outArr += '{$cutline_out}，';
        }
        if('{$rx.cutline_out_other}' != ""){
            cutline_outArr += '其它：{$rx.cutline_out_other}';
        }
        LODOP.SET_PRINT_STYLEA("cutline_out","CONTENT", cutline_outArr);

     //   if('{$rx.combo}' == "是") {
            var cutline_inArr = "";
            if('{$cutline_in}' != ""){
                cutline_inArr += '{$cutline_in}，';
            }
            if('{$rx.cutline_in_other}' != ""){
                cutline_inArr += '其它：{$rx.cutline_in_other}';
            }
            LODOP.SET_PRINT_STYLEA("cutline_in","CONTENT", cutline_inArr);
   //     }

        var pelma_outArr = "";
        if('{$pelma_out}' != ""){
            pelma_outArr += '{$pelma_out}，';
        }
        if('{$rx.pelma_out_other}' != ""){
            pelma_outArr += '其它：{$rx.pelma_out_other}';
        }
        LODOP.SET_PRINT_STYLEA("pelma_out","CONTENT", pelma_outArr);

     //   if('{$rx.combo}' == "是") {
            var pelma_inArr = "";
            if('{$pelma_in}' != ""){
                pelma_inArr += '{$pelma_in}，';
            }
            if('{$rx.pelma_in_other}' != ""){
                pelma_inArr += '其它：{$rx.pelma_in_other}';
            }
            LODOP.SET_PRINT_STYLEA("pelma_in","CONTENT", pelma_inArr);
     //   }

        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function CreateOneFormPage3() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT"," " + '{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT"," " + '{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT"," " + '{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT"," " + '{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT"," " + '{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT"," " + '{$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",'{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
//        if('{$workorder.delivery_date}' == ''){
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT"," ");
//        }else{
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
//        }
        LODOP.SET_PRINT_STYLEA("reason","CONTENT",'{$patientInfo.reason}');
        LODOP.SET_PRINT_STYLEA("compl","CONTENT",'{$patientInfo.compl}');
        LODOP.SET_PRINT_STYLEA("allergy","CONTENT",'{$patientInfo.allergy}');
        LODOP.SET_PRINT_STYLEA("old_orth","CONTENT",'{$patientInfo.old_orth}');
        LODOP.SET_PRINT_STYLEA("orth_part","CONTENT",'{$patientInfo.orth_part}');
        LODOP.SET_PRINT_STYLEA("history","CONTENT",'{$patientInfo.history}');

        LODOP.SET_PRINT_STYLEA("mobility_"+ '{$examBasic.mobility}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("stand_"+ '{$examBasic.stand}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("stand_describe","CONTENT",'{$examBasic.stand_describe}');
        LODOP.SET_PRINT_STYLEA("sit_"+ '{$examBasic.sit}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("sit_describe","CONTENT",'{$examBasic.sit_describe}');
        LODOP.SET_PRINT_STYLEA("endurance_"+ '{$examBasic.endurance}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("endurance_time","CONTENT"," " + '{$examBasic.endurance_time}');
        if('{$examBasic.structure}' == '0'){
            LODOP.SET_PRINT_STYLEA("structure","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("bone_quality_"+ '{$examBasic.bone_quality}',"CONTENT","√");
        if('{$examBasic.broken}' == '1'){
            LODOP.SET_PRINT_STYLEA("broken","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("broken_part","CONTENT"," " + '{$examBasic.broken_part}');
        LODOP.SET_PRINT_STYLEA("boneQuality_"+ '{$examBasic.boneQuality}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("spine_gap","CONTENT",'{$examBasic.spine_gap}');
        if('{$examBasic.feeling}' == '0'){
            LODOP.SET_PRINT_STYLEA("feeling","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("bone_quality_"+ '{$examBasic.bone_quality}',"CONTENT","√");
        if('{$examBasic.nofeeling}' == '1'){
            LODOP.SET_PRINT_STYLEA("nofeeling","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("nofeeling_part","CONTENT",'{$examBasic.nofeeling_part}');
        if('{$examBasic.pain}' == '1'){
            LODOP.SET_PRINT_STYLEA("pain","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("pain_part","CONTENT",'{$examBasic.pain_part}');


        LODOP.SET_PRINT_STYLEA("spine0","CONTENT",'{$examMeasure.spine0}');
        LODOP.SET_PRINT_STYLEA("spine1","CONTENT",'{$examMeasure.spine1}');
        LODOP.SET_PRINT_STYLEA("spine2","CONTENT",'{$examMeasure.spine2}');
        LODOP.SET_PRINT_STYLEA("spine3","CONTENT",'{$examMeasure.spine3}');
        LODOP.SET_PRINT_STYLEA("spine4","CONTENT",'{$examMeasure.spine4}');
        LODOP.SET_PRINT_STYLEA("spine5","CONTENT",'{$examMeasure.spine5}');
        LODOP.SET_PRINT_STYLEA("spine6","CONTENT",'{$examMeasure.spine6}');
        LODOP.SET_PRINT_STYLEA("spine7","CONTENT",'{$examMeasure.spine7}');
        LODOP.SET_PRINT_STYLEA("spine8","CONTENT",'{$examMeasure.spine8}');
        LODOP.SET_PRINT_STYLEA("spine9","CONTENT",'{$examMeasure.spine9}');
        LODOP.SET_PRINT_STYLEA("spine10","CONTENT",'{$examMeasure.spine10}');
        LODOP.SET_PRINT_STYLEA("spine11","CONTENT",'{$examMeasure.spine11}');
        LODOP.SET_PRINT_STYLEA("spine12","CONTENT",'{$examMeasure.spine12}');
        LODOP.SET_PRINT_STYLEA("spine13","CONTENT",'{$examMeasure.spine13}');
        LODOP.SET_PRINT_STYLEA("spine14","CONTENT",'{$examMeasure.spine14}');
        LODOP.SET_PRINT_STYLEA("spine15","CONTENT",'{$examMeasure.spine15}');
        LODOP.SET_PRINT_STYLEA("spine16","CONTENT",'{$examMeasure.spine16}');
        LODOP.SET_PRINT_STYLEA("spine17","CONTENT",'{$examMeasure.spine17}');
        LODOP.SET_PRINT_STYLEA("spine18","CONTENT",'{$examMeasure.spine18}');
        LODOP.SET_PRINT_STYLEA("spine19","CONTENT",'{$examMeasure.spine19}');
        LODOP.SET_PRINT_STYLEA("spine20","CONTENT",'{$examMeasure.spine20}');
        LODOP.SET_PRINT_STYLEA("abdomen","CONTENT"," " + '{$examMeasure.abdomen}');
        LODOP.SET_PRINT_STYLEA("oxter","CONTENT"," " + '{$examMeasure.oxter}');
        LODOP.SET_PRINT_STYLEA("xiphoid","CONTENT"," " + '{$examMeasure.xiphoid}');
        LODOP.SET_PRINT_STYLEA("iliopsoas","CONTENT"," " + '{$examMeasure.iliopsoas}');
        LODOP.SET_PRINT_STYLEA("anterior","CONTENT"," " + '{$examMeasure.anterior}');
        LODOP.SET_PRINT_STYLEA("trochanter","CONTENT"," " + '{$examMeasure.trochanter}');
        LODOP.SET_PRINT_STYLEA("vertex","CONTENT"," " + '{$examMeasure.vertex}');
        LODOP.SET_PRINT_STYLEA("sit_height","CONTENT"," " + '{$examMeasure.sit_height}');
        LODOP.SET_PRINT_STYLEA("stand_height","CONTENT"," " + '{$examMeasure.stand_height}');
        LODOP.SET_PRINT_STYLEA("cobb","CONTENT"," " + '{$examMeasure.cobb}');
        if('{$examMeasure.pelvic_}' == 0){
            LODOP.SET_PRINT_STYLEA("pelvic","CONTENT",' 左高右低');
        }
        if('{$examMeasure.pelvic_}' == 1){
            LODOP.SET_PRINT_STYLEA("pelvic","CONTENT",' 左低右高');
        }
        if('{$examMeasure.shoulder}' == 0){
            LODOP.SET_PRINT_STYLEA("shoulder","CONTENT",' 左高右低');
        }
        if('{$examMeasure.shoulder}' == 1){
            LODOP.SET_PRINT_STYLEA("shoulder","CONTENT",' 左低右高');
        }
        LODOP.SET_PRINT_STYLEA("rotate_"+ '{$examMeasure.rotate}',"CONTENT","√");

        var chest1Arr = '{$examMeasure.chest1}'.split(",");
        for(var i=0;i<chest1Arr.length;i++){
            var name = "chest1_"+ chest1Arr[i];
            if(chest1Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest2Arr = '{$examMeasure.chest2}'.split(",");
        for(var i=0;i<chest2Arr.length;i++){
            var name = "chest2_"+ chest2Arr[i];
            if(chest2Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest3Arr = '{$examMeasure.chest3}'.split(",");
        for(var i=0;i<chest3Arr.length;i++){
            var name = "chest3_"+ chest3Arr[i];
            if(chest3Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest4Arr = '{$examMeasure.chest4}'.split(",");
        for(var i=0;i<chest4Arr.length;i++){
            var name = "chest4_"+ chest4Arr[i];
            if(chest4Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function CreateOneFormPage4() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$workorder.price}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.employee_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function CreateOneFormPage5() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT"," " + '{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT","" + '{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT","" + '{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT","" + '{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT","" + '{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT"," " + '{$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",'{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
        LODOP.SET_PRINT_STYLEA("creator","CONTENT"," " + '{$creator.employee_name}');
        LODOP.SET_PRINT_STYLEA("note","CONTENT"," " + '{$examBasic.note}');
        LODOP.SET_PRINT_STYLEA("type","CONTENT"," " + '{$workorder.type_name}');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$workorder.price}');

        LODOP.SET_PRINT_STYLEA("a1l","CONTENT",'{$examBasic.a1l}');
        LODOP.SET_PRINT_STYLEA("a1r","CONTENT",'{$examBasic.a1r}');
        LODOP.SET_PRINT_STYLEA("a2l","CONTENT",'{$examBasic.a2l}');
        LODOP.SET_PRINT_STYLEA("a2r","CONTENT",'{$examBasic.a2r}');
        LODOP.SET_PRINT_STYLEA("a3l","CONTENT",'{$examBasic.a3l}');
        LODOP.SET_PRINT_STYLEA("a3r","CONTENT",'{$examBasic.a3r}');
        LODOP.SET_PRINT_STYLEA("a4l","CONTENT",'{$examBasic.a4l}');
        LODOP.SET_PRINT_STYLEA("a4r","CONTENT",'{$examBasic.a4r}');
        LODOP.SET_PRINT_STYLEA("a5l","CONTENT",'{$examBasic.a5l}');
        LODOP.SET_PRINT_STYLEA("a5r","CONTENT",'{$examBasic.a5r}');
        LODOP.SET_PRINT_STYLEA("a6l","CONTENT",'{$examBasic.a6l}');
        LODOP.SET_PRINT_STYLEA("a6r","CONTENT",'{$examBasic.a6r}');
        LODOP.SET_PRINT_STYLEA("a7l","CONTENT",'{$examBasic.a7l}');
        LODOP.SET_PRINT_STYLEA("a7r","CONTENT",'{$examBasic.a7r}');
        LODOP.SET_PRINT_STYLEA("a8l","CONTENT",'{$examBasic.a8l}');
        LODOP.SET_PRINT_STYLEA("a8r","CONTENT",'{$examBasic.a8r}');
        LODOP.SET_PRINT_STYLEA("a9l","CONTENT",'{$examBasic.a9l}');
        LODOP.SET_PRINT_STYLEA("a9r","CONTENT",'{$examBasic.a9r}');
        LODOP.SET_PRINT_STYLEA("a10l","CONTENT",'{$examBasic.a10l}');
        LODOP.SET_PRINT_STYLEA("a10r","CONTENT",'{$examBasic.a10r}');
        LODOP.SET_PRINT_STYLEA("a11l","CONTENT",'{$examBasic.a11l}');
        LODOP.SET_PRINT_STYLEA("a11r","CONTENT",'{$examBasic.a11r}');
        LODOP.SET_PRINT_STYLEA("a12l","CONTENT",'{$examBasic.a12l}');
        LODOP.SET_PRINT_STYLEA("a12r","CONTENT",'{$examBasic.a12r}');
        LODOP.SET_PRINT_STYLEA("a13l","CONTENT",'{$examBasic.a13l}');
        LODOP.SET_PRINT_STYLEA("a13r","CONTENT",'{$examBasic.a13r}');
        LODOP.SET_PRINT_STYLEA("a14l","CONTENT",'{$examBasic.a14l}');
        LODOP.SET_PRINT_STYLEA("a14r","CONTENT",'{$examBasic.a14r}');
        LODOP.SET_PRINT_STYLEA("a15l","CONTENT",'{$examBasic.a15l}');
        LODOP.SET_PRINT_STYLEA("a15r","CONTENT",'{$examBasic.a15r}');
        LODOP.SET_PRINT_STYLEA("a16l","CONTENT",'{$examBasic.a16l}');
        LODOP.SET_PRINT_STYLEA("a16r","CONTENT",'{$examBasic.a16r}');
        LODOP.SET_PRINT_STYLEA("a17l","CONTENT",'{$examBasic.a17l}');
        LODOP.SET_PRINT_STYLEA("a17r","CONTENT",'{$examBasic.a17r}');
        LODOP.SET_PRINT_STYLEA("a18l","CONTENT",'{$examBasic.a18l}');
        LODOP.SET_PRINT_STYLEA("a18r","CONTENT",'{$examBasic.a18r}');
        LODOP.SET_PRINT_STYLEA("a19l","CONTENT",'{$examBasic.a19l}');
        LODOP.SET_PRINT_STYLEA("a19r","CONTENT",'{$examBasic.a19r}');
        LODOP.SET_PRINT_STYLEA("a20l","CONTENT",'{$examBasic.a20l}');
        LODOP.SET_PRINT_STYLEA("a20r","CONTENT",'{$examBasic.a20r}');
        LODOP.SET_PRINT_STYLEA("a21l","CONTENT",'{$examBasic.a21l}');
        LODOP.SET_PRINT_STYLEA("a21r","CONTENT",'{$examBasic.a21r}');
        LODOP.SET_PRINT_STYLEA("a22l","CONTENT",'{$examBasic.a22l}');
        LODOP.SET_PRINT_STYLEA("a22r","CONTENT",'{$examBasic.a22r}');
        LODOP.SET_PRINT_STYLEA("a23l","CONTENT",'{$examBasic.a23l}');
        LODOP.SET_PRINT_STYLEA("a23r","CONTENT",'{$examBasic.a23r}');
        LODOP.SET_PRINT_STYLEA("a24l","CONTENT",'{$examBasic.a24l}');
        LODOP.SET_PRINT_STYLEA("a24r","CONTENT",'{$examBasic.a24r}');
        LODOP.SET_PRINT_STYLEA("a25l","CONTENT",'{$examBasic.a25l}');
        LODOP.SET_PRINT_STYLEA("a25r","CONTENT",'{$examBasic.a25r}');
        LODOP.SET_PRINT_STYLEA("a26l","CONTENT",'{$examBasic.a26l}');
        LODOP.SET_PRINT_STYLEA("a26r","CONTENT",'{$examBasic.a26r}');
        LODOP.SET_PRINT_STYLEA("a27l","CONTENT",'{$examBasic.a27l}');
        LODOP.SET_PRINT_STYLEA("a27r","CONTENT",'{$examBasic.a27r}');
        LODOP.SET_PRINT_STYLEA("a28l","CONTENT",'{$examBasic.a28l}');
        LODOP.SET_PRINT_STYLEA("a28r","CONTENT",'{$examBasic.a28r}');
        LODOP.SET_PRINT_STYLEA("a29l","CONTENT",'{$examBasic.a29l}');
        LODOP.SET_PRINT_STYLEA("a29r","CONTENT",'{$examBasic.a29r}');
        LODOP.SET_PRINT_STYLEA("a30l","CONTENT",'{$examBasic.a30l}');
        LODOP.SET_PRINT_STYLEA("a30r","CONTENT",'{$examBasic.a3r}');
        LODOP.SET_PRINT_STYLEA("a31l","CONTENT",'{$examBasic.a31l}');
        LODOP.SET_PRINT_STYLEA("a31r","CONTENT",'{$examBasic.a31r}');
        LODOP.SET_PRINT_STYLEA("a32l","CONTENT",'{$examBasic.a32l}');
        LODOP.SET_PRINT_STYLEA("a32r","CONTENT",'{$examBasic.a32r}');
        LODOP.SET_PRINT_STYLEA("a33l","CONTENT",'{$examBasic.a33l}');
        LODOP.SET_PRINT_STYLEA("a33r","CONTENT",'{$examBasic.a33r}');
        LODOP.SET_PRINT_STYLEA("a34l","CONTENT",'{$examBasic.a34l}');
        LODOP.SET_PRINT_STYLEA("a34r","CONTENT",'{$examBasic.a34r}');
        LODOP.SET_PRINT_STYLEA("a35l","CONTENT",'{$examBasic.a35l}');
        LODOP.SET_PRINT_STYLEA("a35r","CONTENT",'{$examBasic.a35r}');
        LODOP.SET_PRINT_STYLEA("a36l","CONTENT",'{$examBasic.a36l}');
        LODOP.SET_PRINT_STYLEA("a36r","CONTENT",'{$examBasic.a36r}');
        LODOP.SET_PRINT_STYLEA("a37l","CONTENT",'{$examBasic.a37l}');
        LODOP.SET_PRINT_STYLEA("a37r","CONTENT",'{$examBasic.a37r}');
        LODOP.SET_PRINT_STYLEA("a38l","CONTENT",'{$examBasic.a38l}');
        LODOP.SET_PRINT_STYLEA("a38r","CONTENT",'{$examBasic.a38r}');
        LODOP.SET_PRINT_STYLEA("a39l","CONTENT",'{$examBasic.a39l}');
        LODOP.SET_PRINT_STYLEA("a39r","CONTENT",'{$examBasic.a39r}');
        LODOP.SET_PRINT_STYLEA("a40l","CONTENT",'{$examBasic.a40l}');
        LODOP.SET_PRINT_STYLEA("a40r","CONTENT",'{$examBasic.a40r}');
        LODOP.SET_PRINT_STYLEA("a41l","CONTENT",'{$examBasic.a41l}');
        LODOP.SET_PRINT_STYLEA("a41r","CONTENT",'{$examBasic.a41r}');
        LODOP.SET_PRINT_STYLEA("a42l","CONTENT",'{$examBasic.a42l}');
        LODOP.SET_PRINT_STYLEA("a42r","CONTENT",'{$examBasic.a42r}');

        LODOP.SET_PRINT_STYLEA("a43","CONTENT",'{$examBasic.a43}');
        LODOP.SET_PRINT_STYLEA("a44","CONTENT",'{$examBasic.a44}');
        LODOP.SET_PRINT_STYLEA("a45","CONTENT",'{$examBasic.a45}');
        LODOP.SET_PRINT_STYLEA("a46","CONTENT",'{$examBasic.a46}');

//        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
//        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.employee_name}');
//        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function CreateOneFormPageOrder1() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order1.template_content}'); //装载模板
        //按类名赋值
//        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT",'{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT",'{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT",'{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT",'{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT",'{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT",'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT",'{$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",'{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("diagnosis1","CONTENT",'{$patientInfo.diagnosis1}');
        LODOP.SET_PRINT_STYLEA("diagnosis2","CONTENT",'{$patientInfo.diagnosis2}');
        LODOP.SET_PRINT_STYLEA("diagnosis3","CONTENT",'{$patientInfo.diagnosis3}');
        LODOP.SET_PRINT_STYLEA("diagnosis4","CONTENT",'{$patientInfo.diagnosis4}');
        LODOP.SET_PRINT_STYLEA("diagnosis5","CONTENT",'{$patientInfo.diagnosis5}');
//        var doc = '';
//        if('{$patientInfo.doctor}' != ''){
//            doc = '医生：{$patientInfo.doctor}\n';
//        }
//        if('{$patientInfo.hospital}' != ''){
//            doc += '医院：({$patientInfo.hospital})';
//        }
//        LODOP.SET_PRINT_STYLEA("doctor","CONTENT",doc);

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function CreateOneFormPageOrder2() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order2.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("mobility","CONTENT",'{$examBasic.mobility}');
        LODOP.SET_PRINT_STYLEA("shankcontrol","CONTENT",'{$examBasic.shankcontrol}');
        LODOP.SET_PRINT_STYLEA("gait","CONTENT",'{$examBasic.gait}');
        if('{$examBasic.burden}' != ""){
            LODOP.SET_PRINT_STYLEA("castburden","CONTENT",'取型时{$examBasic.burden}');
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",'{$examBasic.footarch}');
        var toe = '{$examBasic.toe}';
        if('{$examBasic.notetoe}' != ""){
            toe += '，备注：{$examBasic.notetoe}';
        }
        LODOP.SET_PRINT_STYLEA("toe","CONTENT",toe);
        LODOP.SET_PRINT_STYLEA("height_heel","CONTENT",'{$examBasic.height_heel}');
        LODOP.SET_PRINT_STYLEA("shoe_size","CONTENT",'{$examBasic.shoe_type}({$examBasic.shoe_size}码)');
        var forefoot = '{$examBasic.forefoot}';
        if('{$examBasic.complforefoot}' != ""){
            forefoot += '，{$examBasic.complforefoot}';
        }
        if('{$examBasic.noteforefoot}' != ""){
            forefoot += '，备注：{$examBasic.noteforefoot}';
        }
        LODOP.SET_PRINT_STYLEA("forefoot","CONTENT",forefoot);
        var footarch = '{$examBasic.footarch}';
        if('{$examBasic.notefootarch}' != ""){
            footarch += '，备注：{$examBasic.notefootarch}';
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",footarch);
        var complheel = '{$examBasic.complheel}';
        if('{$examBasic.heela}' != ""){
            complheel += ',负重位：{$examBasic.heela}({$examBasic.heelaangle})°';
        }
        if('{$examBasic.heelb}' != ""){
            complheel += ',非负重位：{$examBasic.heelb}({$examBasic.heelbangle})°';
        }
        if('{$examBasic.noteheel}' != ""){
            complheel += '，备注：{$examBasic.noteheel}';
        }
        LODOP.SET_PRINT_STYLEA("complheel","CONTENT",complheel);
        LODOP.SET_PRINT_STYLEA("discomfort","CONTENT",'                                   {$examBasic.discomfort}');
        LODOP.SET_PRINT_STYLEA("anklesymmetry","CONTENT",'             {$examBasic.anklesymmetry}');
        LODOP.SET_PRINT_STYLEA("dysfunction","CONTENT",'                       {$examBasic.dysfunction}');
        if('{$examBasic.takephoto}' == "1"){
            LODOP.SET_PRINT_STYLEA("takephoto","CONTENT","√");
        }
        if('{$examBasic.takevideo}' == "1"){
            LODOP.SET_PRINT_STYLEA("takevideo","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examBasic.update_time}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.employee_name}');
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function CreateOneFormPageOrder3() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order3.template_content}'); //装载模板
        //按类名赋值
        if('{$workorder.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$rx.price}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.employee_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$rx.delivery_date}');
        LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.employee_name}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$workorder.adapt}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_type_"+ '{$examAnalysis.ankle_type}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_type_other","CONTENT"," " + '{$examAnalysis.ankle_type_other}');
//        LODOP.SET_PRINT_STYLEA("ankle_size_"+ '{$examAnalysis.ankle_size}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_activity_"+ '{$examAnalysis.ankle_activity}',"CONTENT","√");
//        if('{$examAnalysis.ankle_activity}' == "0"){
//            LODOP.SET_PRINT_STYLEA("ankle_activity_option1_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
//        }
//        if('{$examAnalysis.ankle_activity}' == "1"){
//            LODOP.SET_PRINT_STYLEA("ankle_activity_option2_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
//            if('{$examAnalysis.ankle_activity_option}' == "2"){
//                LODOP.SET_PRINT_STYLEA("ankle_activity_other1","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
//            }
//            if('{$examAnalysis.ankle_activity_option}' == "3"){
//                LODOP.SET_PRINT_STYLEA("ankle_activity_other2","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
//            }
//        }

   //     if('{$rx.combo}' == "是"){
            LODOP.SET_PRINT_STYLEA("combo","CONTENT","√");
            LODOP.SET_PRINT_STYLEA("afotype_in","CONTENT", '内靴类型：{$afotype_in}');
   //     }

        LODOP.SET_PRINT_STYLEA("afotype_out","CONTENT", '外靴类型：{$afotype_out}');

        var dorsal_supArr = "";
        if('{$rx.activity_limit}' != ""){
            dorsal_supArr += '活动限制:{$rx.activity_limit}。';
        }
        if('{$rx.limit_level}' != ""){
            if('{$rx.limit_level_angle}' != ""){
                dorsal_supArr += '限制程度:{$rx.limit_level}--{$rx.limit_level_angle}度。';
            }else{
                dorsal_supArr += '限制程度:{$rx.limit_level}。';
            }
        }
        if('{$rx.limit_level_other}' != ""){
            dorsal_supArr += '其它:{$rx.limit_level_other}';
        }
        LODOP.SET_PRINT_STYLEA("dorsal_sup","CONTENT", dorsal_supArr);

        if('{$rx.flex_other}' != ""){
            LODOP.SET_PRINT_STYLEA("flex","CONTENT", '{$flex}。其他:{$rx.flex_other}');
        }else{
            LODOP.SET_PRINT_STYLEA("flex","CONTENT", '{$flex}');
        }


        LODOP.SET_PRINT_STYLEA("afotype_out_note","CONTENT", '{$rx.afotype_out_note}');
    //    if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("afotype_in_note", "CONTENT", '{$rx.afotype_in_note}');
   //     }
        LODOP.SET_PRINT_STYLEA("afotype_other_note","CONTENT", '{$rx.afotype_other_note}');
        LODOP.SET_PRINT_STYLEA("ahtype","CONTENT", '{$rx.ahtype}');
        LODOP.SET_PRINT_STYLEA("ahsize","CONTENT", '{$rx.ahsize}');
        LODOP.SET_PRINT_STYLEA("activity_limit","CONTENT", '{$rx.activity_limit}');
        LODOP.SET_PRINT_STYLEA("limit_level","CONTENT", '{$rx.limit_level}');
        if('{$rx.limit_level_angle}' != "") {
            LODOP.SET_PRINT_STYLEA("limit_level_angle", "CONTENT", '(角度:{$rx.limit_level_angle}°)');
        }
        if('{$rx.limit_level_other}' != "") {
            LODOP.SET_PRINT_STYLEA("limit_level_other", "CONTENT", '其它铰链及限制说明:{$rx.limit_level_other}');
        }
        LODOP.SET_PRINT_STYLEA("ahtype","CONTENT", '{$rx.ahtype}');
        LODOP.SET_PRINT_STYLEA("sag","CONTENT", 'AA：{$rx.sag_aa}°，SVA：{$rx.sag_sva}°');
        var heelArr = "";
        if('{$rx.heel}' != ""){
            heelArr += '跟骨：{$rx.heel}';
        }
        if('{$rx.heel_angle}' != ""){
            heelArr += '--{$rx.heel_angle}°。';
        }else{
            heelArr += '。';
        }
        if('{$rx.forefoot}' != ""){
            heelArr += '前足：{$rx.forefoot}';
        }
        LODOP.SET_PRINT_STYLEA("heel","CONTENT", heelArr);

//        if('{$rx.shankab}' == ""){
//            LODOP.SET_PRINT_STYLEA("shank","CONTENT", 'A小腿前倾不足：{$rx.shanka}，{$rx.in_shanka}');
//        }else{
//            LODOP.SET_PRINT_STYLEA("shank","CONTENT", 'B小腿过度前倾：{$rx.shankb}');
//        }

        LODOP.SET_PRINT_STYLEA("outproduct","CONTENT", '{$rx.outproduct}');
        var outArr = "";
        if('{$rx.out_pp}' != ""){
            outArr += "PP：" + '{$rx.out_pp}，';
        }
        if('{$rx.out_carbpp}' != ""){
            outArr += "碳纤PP：" + '{$rx.out_carbpp}，';
        }
        if('{$rx.out_copp}' != ""){
            outArr += "共聚PP：" + '{$rx.out_copp}，';
        }
        if('{$rx.out_pe}' != ""){
            outArr += "PE：" + '{$rx.out_pe}，';
        }
        if('{$rx.out_enhpe}' != ""){
            outArr += "改性PE：" + '{$rx.out_enhpe}，';
        }
        if('{$rx.out_dy}' != ""){
            outArr += "Dynamolene：" + '{$rx.out_dy}，';
        }
        LODOP.SET_PRINT_STYLEA("out_m","CONTENT", outArr);

    //    if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("inproduct", "CONTENT", '{$rx.inproduct}');
            var inArr = "";
            if ('{$rx.in_dy}' != "") {
                inArr += "Dynamolene：" + '{$rx.in_dy}，';
            }
            if ('{$rx.in_enhpe}' != "") {
                inArr += "改性PE：" + '{$rx.in_enhpe}，';
            }
            if ('{$rx.in_copp}' != "") {
                inArr += "共聚PP：" + '{$rx.in_copp}，';
            }
            if ('{$rx.in_pp}' != "") {
                inArr += "PP：" + '{$rx.in_pp}，';
            }
            if ('{$rx.in_eva}' != "") {
                inArr += "EVA：" + '{$rx.in_eva}，';
            }
            LODOP.SET_PRINT_STYLEA("in_m", "CONTENT", inArr);

            LODOP.SET_PRINT_STYLEA("innerproduct", "CONTENT", '{$rx.innerproduct}');
            var innerArr = "";
            if ('{$rx.inner_al}' != "") {
                innerArr += "Aliplast：" + '{$rx.inner_al}，';
            }
            if ('{$rx.inner_eva}' != "") {
                innerArr += "EVA：" + '{$rx.inner_eva}，';
            }
            if ('{$rx.inner_other}' != "") {
                innerArr += "其他内衬：" + '{$rx.inner_other}';
            }
            LODOP.SET_PRINT_STYLEA("inner_m", "CONTENT", innerArr);
   //     }

        var mould_outArr = "";
        if('{$mould_out}' != ""){
            mould_outArr += '{$mould_out},';
        }
        if('{$rx.mould_out_a}' != ""){
            mould_outArr += '跟骨内侧楔形:{$rx.mould_out_a}°,';
        }
        if('{$rx.mould_out_b}' != ""){
            mould_outArr += '跟骨外侧楔形:{$rx.mould_out_b}°,';
        }
        if('{$rx.mould_out_c}' != ""){
            mould_outArr += '中足内侧楔形:{$rx.mould_out_c}°,';
        }
        if('{$rx.mould_out_d}' != ""){
            mould_outArr += '中足外侧楔形:{$rx.mould_out_d}°,';
        }
        if('{$rx.mould_out_e}' != ""){
            mould_outArr += '前脚掌加长:{$rx.mould_out_e},';
        }
        if('{$rx.mould_out_f}' != ""){
            mould_outArr += '跖趾关节前翘:{$rx.mould_out_f}°,';
        }
        if('{$rx.mould_out_g}' != ""){
            mould_outArr += '趾间关节前翘:{$rx.mould_out_g}°,';
        }
        if('{$rx.mould_out_h}' != ""){
            mould_outArr += '第{$rx.mould_out_h}跖趾关节下免荷,';
        }
        if('{$rx.mould_out_i}' != ""){
            mould_outArr += '其它：{$rx.mould_out_i}';
        }
        LODOP.SET_PRINT_STYLEA("mould_out","CONTENT", mould_outArr);

//        if('{$rx.combo}' == "是") {
//            var mould_inArr = "";
//            if ('{$mould_in}' != "") {
//                mould_inArr += '{$mould_in},';
//            }
//            if ('{$rx.mould_in_a}' != "") {
//                mould_inArr += '前脚掌加长:{$rx.mould_in_a},';
//            }
//            if ('{$rx.mould_in_b}' != "") {
//                mould_inArr += '跖趾关节前翘:{$rx.mould_in_b}°,';
//            }
//            if ('{$rx.mould_in_c}' != "") {
//                mould_inArr += '趾间关节前翘:{$rx.mould_in_c}°,';
//            }
//            if ('{$rx.mould_in_d}' != "") {
//                mould_inArr += '第{$rx.mould_in_d}跖趾关节下免荷,';
//            }
//            if ('{$rx.mould_in_e}' != "") {
//                mould_inArr += '其它:{$rx.mould_in_e}';
//            }
//            LODOP.SET_PRINT_STYLEA("mould_in", "CONTENT", mould_inArr);
//        }

        var wedge_outArr = "";
        if('{$rx.wedge_out_pos}' != ""){
            wedge_outArr += '位于：{$rx.wedge_out_pos},';
        }
        if('{$rx.wedge_out_b}' != ""){
            wedge_outArr += '前足：{$rx.wedge_out_b}--{$rx.wedge_out_a}°,';
        }
        if('{$rx.wedge_out_d}' != ""){
            wedge_outArr += '中足：{$rx.wedge_out_d}--{$rx.wedge_out_c}° ';
        }
        if('{$rx.wedge_out_f}' != ""){
            wedge_outArr += '后足：{$rx.wedge_out_f}--{$rx.wedge_out_e}°,';
        }
        if('{$rx.wedge_out_g}' != ""){
            wedge_outArr += '其它：{$rx.wedge_out_g}';
        }
        LODOP.SET_PRINT_STYLEA("wedge_out","CONTENT", wedge_outArr);

    //    if('{$rx.combo}' == "是") {
            var wedge_inArr = "";
            if('{$rx.wedge_in_pos}' != ""){
                wedge_inArr += '位于：{$rx.wedge_in_pos},';
            }
            if('{$rx.wedge_in_b}' != ""){
                wedge_inArr += '前足：{$rx.wedge_in_b}--{$rx.wedge_in_a}°,';
            }
            if('{$rx.wedge_in_d}' != ""){
                wedge_inArr += '中足：{$rx.wedge_in_d}--{$rx.wedge_in_c}° ';
            }
            if('{$rx.wedge_in_f}' != ""){
                wedge_inArr += '后足：{$rx.wedge_in_f}--{$rx.wedge_in_e}°,';
            }
            if('{$rx.wedge_in_g}' != ""){
                wedge_inArr += '其它：{$rx.wedge_in_g}';
            }
            LODOP.SET_PRINT_STYLEA("wedge_in","CONTENT", wedge_inArr);
    //    }

        var soleArr = "";
        if('{$rx.sole_a}' != ""){
            soleArr += '足跟：{$rx.sole_a},  ';
        }
        if('{$rx.sole_b}' != ""){
            soleArr += '前足：{$rx.sole_b},  ';
        }
        if('{$rx.sole_b_angle}' != ""){
            soleArr += '描述：{$rx.sole_b_angle},  ';
        }
        if('{$rx.sole_c}' != ""){
            soleArr += '有效跟高：{$rx.sole_c},  ';
        }
        if('{$rx.sole_d}' != ""){
            soleArr += '其它要求：{$rx.sole_d}';
        }
        LODOP.SET_PRINT_STYLEA("sole","CONTENT", soleArr);

        var hasp_out_aArr = "";
        if('{$rx.hasp_out_len_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_len_a}，';
        }
        if('{$rx.hasp_out_type_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_type_a}，';
        }
        if('{$rx.hasp_out_tight_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_tight_a}，';
        }
        if('{$rx.hasp_out_start_a}' != ""){
            hasp_out_aArr += '起点:{$rx.hasp_out_start_a}、{$rx.hasp_out_side_a},';
        }
        if('{$rx.hasp_out_start_a1}' != ""){
            hasp_out_aArr += '止点:{$rx.hasp_out_start_a1}、{$rx.hasp_out_side_a1},';
        }
        if('{$rx.hasp_out_other_a}' != ""){
            hasp_out_aArr += '其它：{$rx.hasp_out_other_a}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_a","CONTENT", hasp_out_aArr);

        var hasp_out_bArr = "";
        if('{$rx.hasp_out_len_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_len_b}，';
        }
        if('{$rx.hasp_out_type_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_type_b}，';
        }
        if('{$rx.hasp_out_tight_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_tight_b}，';
        }
        if('{$rx.hasp_out_start_b}' != ""){
            hasp_out_bArr += '起点:{$rx.hasp_out_start_b}、{$rx.hasp_out_side_b},';
        }
        if('{$rx.hasp_out_start_b1}' != ""){
            hasp_out_bArr += '止点:{$rx.hasp_out_start_b1}、{$rx.hasp_out_side_b1},';
        }
        if('{$rx.hasp_out_other_b}' != ""){
            hasp_out_bArr += '其它：{$rx.hasp_out_other_b}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_b","CONTENT", hasp_out_bArr);

        var hasp_out_cArr = "";
        if('{$rx.hasp_out_len_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_len_c}，';
        }
        if('{$rx.hasp_out_type_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_type_c}，';
        }
        if('{$rx.hasp_out_tight_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_tight_c}，';
        }
        if('{$rx.hasp_out_start_c}' != ""){
            hasp_out_cArr += '起点:{$rx.hasp_out_start_c}、{$rx.hasp_out_side_c},';
        }
        if('{$rx.hasp_out_start_c1}' != ""){
            hasp_out_cArr += '止点:{$rx.hasp_out_start_c1}、{$rx.hasp_out_side_c1},';
        }
        if('{$rx.hasp_out_other_c}' != ""){
            hasp_out_cArr += '其它：{$rx.hasp_out_other_c}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_c","CONTENT", hasp_out_cArr);

        var hasp_out_dArr = "";
        if('{$rx.hasp_out_len_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_len_d}，';
        }
        if('{$rx.hasp_out_type_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_type_d}，';
        }
        if('{$rx.hasp_out_tight_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_tight_d}，';
        }
        if('{$rx.hasp_out_start_d}' != ""){
            hasp_out_dArr += '起点:{$rx.hasp_out_start_d}、{$rx.hasp_out_side_d},';
        }
        if('{$rx.hasp_out_start_d1}' != ""){
            hasp_out_dArr += '止点:{$rx.hasp_out_start_d1}、{$rx.hasp_out_side_d1},';
        }
        if('{$rx.hasp_out_other_d}' != ""){
            hasp_out_dArr += '其它：{$rx.hasp_out_other_d}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_d","CONTENT", hasp_out_dArr);

    //    if('{$rx.combo}' == "是") {
            var hasp_in_aArr = "";
            if('{$rx.hasp_in_len_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_len_a}，';
            }
            if('{$rx.hasp_in_type_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_type_a}，';
            }
            if('{$rx.hasp_in_tight_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_tight_a}，';
            }
            if('{$rx.hasp_in_start_a}' != ""){
                hasp_in_aArr += '起点:{$rx.hasp_in_start_a}、{$rx.hasp_in_side_a},';
            }
            if('{$rx.hasp_in_start_a1}' != ""){
                hasp_in_aArr += '止点:{$rx.hasp_in_start_a1}、{$rx.hasp_in_side_a1},';
            }
            if('{$rx.hasp_in_other_a}' != ""){
                hasp_in_aArr += '其它：{$rx.hasp_in_other_a}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_a","CONTENT", hasp_in_aArr);

            var hasp_in_bArr = "";
            if('{$rx.hasp_in_len_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_len_b}，';
            }
            if('{$rx.hasp_in_type_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_type_b}，';
            }
            if('{$rx.hasp_in_tight_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_tight_b}，';
            }
            if('{$rx.hasp_in_start_b}' != ""){
                hasp_in_bArr += '起点:{$rx.hasp_in_start_b}、{$rx.hasp_in_side_b},';
            }
            if('{$rx.hasp_in_start_b1}' != ""){
                hasp_in_bArr += '止点:{$rx.hasp_in_start_b1}、{$rx.hasp_in_side_b1},';
            }
            if('{$rx.hasp_in_other_b}' != ""){
                hasp_in_bArr += '其它：{$rx.hasp_in_other_b}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_b","CONTENT", hasp_in_bArr);

            var hasp_in_cArr = "";
            if('{$rx.hasp_in_len_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_len_c}，';
            }
            if('{$rx.hasp_in_type_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_type_c}，';
            }
            if('{$rx.hasp_in_tight_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_tight_c}，';
            }
            if('{$rx.hasp_in_start_c}' != ""){
                hasp_in_cArr += '起点:{$rx.hasp_in_start_c}、{$rx.hasp_in_side_c},';
            }
            if('{$rx.hasp_in_start_c1}' != ""){
                hasp_in_cArr += '止点:{$rx.hasp_in_start_c1}、{$rx.hasp_in_side_c1},';
            }
            if('{$rx.hasp_in_other_c}' != ""){
                hasp_in_cArr += '其它：{$rx.hasp_in_other_c}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_c","CONTENT", hasp_in_cArr);
   //     }

        var cutline_outArr = "";
        if('{$cutline_out}' != ""){
            cutline_outArr += '{$cutline_out}，';
        }
        if('{$rx.cutline_out_other}' != ""){
            cutline_outArr += '其它：{$rx.cutline_out_other}';
        }
        LODOP.SET_PRINT_STYLEA("cutline_out","CONTENT", cutline_outArr);

     //   if('{$rx.combo}' == "是") {
            var cutline_inArr = "";
            if('{$cutline_in}' != ""){
                cutline_inArr += '{$cutline_in}，';
     //       }
            if('{$rx.cutline_in_other}' != ""){
                cutline_inArr += '其它：{$rx.cutline_in_other}';
            }
            LODOP.SET_PRINT_STYLEA("cutline_in","CONTENT", cutline_inArr);
        }

        var pelma_outArr = "";
        if('{$pelma_out}' != ""){
            pelma_outArr += '{$pelma_out}，';
        }
        if('{$rx.pelma_out_other}' != ""){
            pelma_outArr += '其它：{$rx.pelma_out_other}';
        }
        LODOP.SET_PRINT_STYLEA("pelma_out","CONTENT", pelma_outArr);

    //    if('{$rx.combo}' == "是") {
            var pelma_inArr = "";
            if('{$pelma_in}' != ""){
                pelma_inArr += '{$pelma_in}，';
            }
            if('{$rx.pelma_in_other}' != ""){
                pelma_inArr += '其它：{$rx.pelma_in_other}';
            }
            LODOP.SET_PRINT_STYLEA("pelma_in","CONTENT", pelma_inArr);
   //     }

        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function CreateOneFormPageOrder4() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order4.template_content}'); //装载模板
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.employee_name}');
        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');

        LODOP.SET_PRINT_STYLEA("burden","CONTENT",'{$examMeasure.burden}');
        LODOP.SET_PRINT_STYLEA("shank_0","CONTENT",'{$examMeasure.shank_0}');
        LODOP.SET_PRINT_STYLEA("shank_1","CONTENT",'{$examMeasure.shank_1}');
        LODOP.SET_PRINT_STYLEA("shank_2","CONTENT",'{$examMeasure.shank_2}');
        LODOP.SET_PRINT_STYLEA("shank_3","CONTENT",'{$examMeasure.shank_3}');
        LODOP.SET_PRINT_STYLEA("shank_4","CONTENT",'{$examMeasure.shank_4}');
        LODOP.SET_PRINT_STYLEA("shank_5","CONTENT",'{$examMeasure.shank_5}');
        LODOP.SET_PRINT_STYLEA("shank_6","CONTENT",'{$examMeasure.shank_6}');
        LODOP.SET_PRINT_STYLEA("shank_7","CONTENT",'{$examMeasure.shank_7}');
        LODOP.SET_PRINT_STYLEA("shank_8","CONTENT",'{$examMeasure.shank_8}');
        LODOP.SET_PRINT_STYLEA("shank_9","CONTENT",'{$examMeasure.shank_9}');
        LODOP.SET_PRINT_STYLEA("shank_10","CONTENT",'{$examMeasure.shank_10}');
        LODOP.SET_PRINT_STYLEA("shank_11","CONTENT",'{$examMeasure.shank_11}');
        LODOP.SET_PRINT_STYLEA("shank_12","CONTENT",'{$examMeasure.shank_12}');
        LODOP.SET_PRINT_STYLEA("shank_13","CONTENT",'{$examMeasure.shank_13}');
        LODOP.SET_PRINT_STYLEA("shank_14","CONTENT",'{$examMeasure.shank_14}');
        LODOP.SET_PRINT_STYLEA("shank_15","CONTENT",'{$examMeasure.shank_15}');
//        LODOP.SET_PRINT_STYLEA("shank_16","CONTENT",'{$examMeasure.shank_16}');
//        LODOP.SET_PRINT_STYLEA("shank_17","CONTENT",'{$examMeasure.shank_17}°');
//        LODOP.SET_PRINT_STYLEA("shank_18","CONTENT",'{$examMeasure.shank_18}°');
//        LODOP.SET_PRINT_STYLEA("shank_19","CONTENT",'{$examMeasure.shank_19}°');
//        LODOP.SET_PRINT_STYLEA("shank_20","CONTENT",'{$examMeasure.shank_20}°');


        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
</script>
</body>
</html>